import { SHOP_TYPES_URL, SHOP_GOODS_URL } from '../config/urls.cfg'
import request from './ajax'
/** 获取shop页类型数据接口 */
export function shopTypesApi(): Promise<any> {
    return request({ url: SHOP_TYPES_URL })
}
/** 获取shop页商品数据接口 */
export function shopGoodsApi(page:number,size:number): Promise<any> {
    return request({
        url: SHOP_GOODS_URL
        , params: { page, size }
    })
}